mod user_handler;

use axum::{middleware, routing::get, Router};

use crate::common::AppContext;

pub fn create_route(app_context: AppContext) -> Router {
    Router::new().route(
        "/",
        get(user_handler::query_one),
    )
    .layer(middleware::from_fn(crate::middleware::trace_id))
    .with_state(app_context)
}
